package com.yxb.constant;

import java.util.ArrayList;
import java.util.List;

/**
 *  触发 发生消息的事件类型
 */
public class SendMsgEvent {


    public static final String STATE = "STATE";
    public static final String ACTIVATION= "ACTIVATION";
    public static final String PIPE = "PIPE";
    public static final String PIPE_SYNC= "PIPE_SYNC";
    public static final String SYNC = "SYNC";

    private static final List<String> SEND_MSG_EVENT = new ArrayList<>();

    static {
        SEND_MSG_EVENT.add(STATE);
        SEND_MSG_EVENT.add(ACTIVATION);
        SEND_MSG_EVENT.add(PIPE);
        SEND_MSG_EVENT.add(PIPE_SYNC);
        SEND_MSG_EVENT.add(SYNC);
    }

    public boolean contains(String event){
        return SEND_MSG_EVENT.contains(event);
    }




}
